<include file="public@header" />
</head>

<body>
    <div class="wrap">
        <ul class="nav nav-tabs">
            <li class="active"><a>兑换信息</a></li>
        </ul>
        <form class="well form-inline margin-top-20" method="post" action="{:url('AdminCardRedeem/index')}">
            礼券：
            <input class="form-control" type="text" name="tpname" style="width: 200px;"
                value="{:input('request.tpname')}" placeholder="礼券">
            卡号：
            <input class="form-control" type="text" name="card" style="width: 200px;" value="{:input('request.card')}"
                placeholder="卡号">
            客户名称：
            <input class="form-control" type="text" name="name" style="width: 200px;" value="{:input('request.name')}"
                placeholder="客户名称：">
            客户电话：
            <input class="form-control" type="text" name="tele" style="width: 200px;" value="{:input('request.tele')}"
                placeholder="客户电话：">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('AdminCardRedeem/index')}">清空</a>
        </form>
        <form method="post" class="js-ajax-form">
            <div class="table-actions">
                <a class="btn btn-primary btn-sm" href="{:url('AdminCardRedeem/excel',input('param.'))}">导出未发货</a>
            </div>
            <table class="table table-hover table-bordered">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>蟹券</th>
                        <th>规格</th>
                        <th>卡号</th>
                        <th>密码</th>
                        <th>客户名称</th>
                        <th>客户电话</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                </thead>
                <tbody>
                    <foreach name="list" item="vo">
                        <tr>
                            <td>{$vo.id}</td>
                            <td>{$vo.tpname}</td>
                            <td>{$vo.spk}</td>
                            <td>{$vo.card_no}</td>
                            <td>{$vo.card_psd}</td>
                            <td>{$vo.name}</td>
                            <td>{$vo.tele}</td>
                            <td>{:express_status($vo.express_status)}</td>
                            <td>
                                <if condition="comm_auth_check('edit')">
                                    <a href='{:url("AdminCardRedeem/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
                                </if>
                            </td>
                        </tr>
                    </foreach>
                </tbody>
            </table>
            <div class="pagination">{$page}</div>
        </form>
    </div>
    <script src="__STATIC__/js/admin.js"></script>
</body>

</html>